using System;
using HZY.Models.Enums;
namespace HZY.Models
{
    using HZY.Toolkits;
    using System.ComponentModel.DataAnnotations;
	using System.ComponentModel.DataAnnotations.Schema;
 
	[Table(nameof(SalesSlip))]
	public class SalesSlip
	{
		/// <summary>
		///  ID  
		/// </summary>
		[Key]
		public Guid SalesSlip_ID { get; set; } = Guid.Empty;
		/// <summary>
		/// 单据名称 
		/// </summary>
		
		public string SalesSlip_Name { get; set; }
		/// <summary>
		/// 单据编号  
		/// </summary>
		[Required(ErrorMessage = "单据编号不能为空!")]
		public string SalesSlip_Code { get; set; } = RandomNumber.GetRandom1();
		/// <summary>
		/// 录单日期 
		/// </summary>
		public DateTime? SalesSlip_EntryTime { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
		public DateTime? SalesSlip_CreateTime { get; set; }
		/// <summary>
		/// 经手人 
		/// </summary>
		public string SalesSlip_Handler { get; set; }
		/// <summary>
		/// 客户 
		/// </summary>
		[Required(ErrorMessage = "客户不能为空!")]
		public Guid? SalesSlip_CustomerId { get; set; }
		/// <summary>
		/// 是否完成 
		/// </summary>
		public ERole_IsDelete SalesSlip_IsComplete { get; set; } = ERole_IsDelete.否;
		/// <summary>
		/// 备注  
		/// </summary>
		public string SalesSlip_Remarks { get; set; }

	}
}